<? ob_start(); ?>
<? require_once 'configuration.php'; ?>
<!DOCTYPE html>
<html lang="es">
    <head>

        <title>Televisa -  <?= COMPONENT ?></title>

        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"> 
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <!--[if IE]>
        <meta http-equiv="imagetoolbar" content="no">
        <![endif]-->
        <meta name="robots" content="index,follow,noodp,noydir">


        <link rel="stylesheet" href="../global/css/global.css" media="screen">
        <? if (file_exists(BASE_PATH . DS . COMPONENT . DS . "css" . DS . COMPONENT . "_mobile.css")): ?> 
            <link rel="stylesheet" href="css/<?= COMPONENT ?>_mobile.css" media="screen">
        <? endif; ?>
        <link rel="stylesheet" href="css/<?= COMPONENT ?>_tablet.css" media="screen and (min-width: 39em)">
        <link rel="stylesheet" href="css/<?= COMPONENT ?>.css" media="screen and (min-width: 60em)">

        <meta name="HandheldFriendly" content="true">
        <meta name="format-detection" content="telephone=no">
        <!-- link: CSS IE-->


        <?
        $path = BASE_PATH . DS . COMPONENT . DS;
        $ie7 = $path . "css/" . COMPONENT . "_ie7.css";

        if (file_exists($ie7)):
            ?>  
            <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" href="css/<?= COMPONENT ?>_ie7.css" />
            <![endif]-->
        <? endif; ?>
        <?
        $ie8 = $path . "css/" . COMPONENT . "_ie8.css";

        if (file_exists($ie8)):
            ?>
            <!--[if IE 8]>
            <link rel="stylesheet" type="text/css" href="css/<?= COMPONENT ?>_ie8.css" />
            <![endif]-->
        <? endif; ?>
        <?
        $ie9 = $path . "css/" . COMPONENT . "_ie9.css";

        if (file_exists($ie9)):
            ?>
            <!--[if IE 9]>
            <link rel="stylesheet" type="text/css" href="css/<?= COMPONENT ?>_ie9.css" />
            <![endif]-->
        <? endif; ?>


        <!--[if IE]> 
        <script type="text/javascript">
            function noError(){return true;}
            window.onerror = noError;	
            
        </script>
        <![endif]-->

        <?php
        if (JS):
            ?>
            <script type="text/javascript" src="../global/js/headjs.js"></script>
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

            <script type="text/javascript" src="../global/js/modernizr.js"></script>
            <script type="text/javascript" src="../global/js/Televisa.js"></script>
            <script type="text/javascript" src="../global/js/global.js"></script>    

            <? if (file_exists("js/" . COMPONENT . ".js")): ?>  
                <script type="text/javascript" src="js/<?= COMPONENT ?>.js"></script>
            <? endif; ?>

            <?
        endif;
        ?>

        <?
// Si es un template se agregan automaticamente estas lineas
        if (substr(COMPONENT, 0, 3) == 'nt_'):
            ?>   

            <link rel="stylesheet" href="file.css" media="screen">
            <script type="text/javascript" src="file.js"></script>

        <? endif; ?>  

    </head>
    <body> 

